#!/usr/bin/python

def main():
	
	rate = input("Enter your hourly rate: ")
	hours = input("Enter the number of hours worked in a week: ")

	if hours <= 40:
		payment = rate * hours
		print "Your weekly payment is: %s dollars" % payment
	else:
		payment = (40 * rate) + ((hours - 40) * 1.5 * rate)
		print "Your weekly payment is: %s dollars ot" % payment

		
main()
